\doxysection{People类 参考}
\label{class_people}\index{People@{People}}


{\ttfamily \#include $<$People.\+h$>$}



People 的协作图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=284pt]{class_people__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
void \textbf{ Touches\+Face\+Number\+Increase} ()
\item 
void \textbf{ Touches\+Contaminated\+Mahjong\+Number\+Increase} ()
\item 
void \textbf{ Print\+Touches\+Face\+Number} ()
\item 
void \textbf{ Print\+Touches\+Contaminated\+Mahjong\+Number} ()
\item 
\textbf{ People} (float i1, float i2, bool mask, int reaction)
\begin{DoxyCompactList}\small\item\em 获取和改变玩家属性的一些函数 \end{DoxyCompactList}\item 
bool \textbf{ get\+Having\+Mask} ()
\begin{DoxyCompactList}\small\item\em 获取是否戴口罩 \end{DoxyCompactList}\item 
void \textbf{ set\+ID} (int i)
\begin{DoxyCompactList}\small\item\em 设置本人\+ID \end{DoxyCompactList}\item 
void \textbf{ set\+After} (\textbf{ People} $\ast$const x)
\begin{DoxyCompactList}\small\item\em 设置尾指针 \end{DoxyCompactList}\item 
void \textbf{ set\+Front} (\textbf{ People} $\ast$const x)
\begin{DoxyCompactList}\small\item\em 设置头指针 \end{DoxyCompactList}\item 
\textbf{ People} $\ast$ \textbf{ After} ()
\begin{DoxyCompactList}\small\item\em 获得尾指针 \end{DoxyCompactList}\item 
\textbf{ People} $\ast$ \textbf{ Front} ()
\begin{DoxyCompactList}\small\item\em 获得头指针 \end{DoxyCompactList}\item 
float \textbf{ Get\+Propagates} ()
\begin{DoxyCompactList}\small\item\em 获得病毒残留概率 \end{DoxyCompactList}\item 
float \textbf{ Get\+Infected} ()
\begin{DoxyCompactList}\small\item\em 获得被感染概率系数 \end{DoxyCompactList}\item 
void \textbf{ Set\+Virus} (int a)
\begin{DoxyCompactList}\small\item\em 设置携带病毒量 \end{DoxyCompactList}\item 
float \textbf{ Get\+Virus} ()
\begin{DoxyCompactList}\small\item\em 获得病毒携带量 \end{DoxyCompactList}\item 
void \textbf{ Air\+Dissemination} (float Air\+Virus\+Load)
\item 
void \textbf{ Add\+Card} (\textbf{ Mahjong} \&card)
\begin{DoxyCompactList}\small\item\em 摸牌 \end{DoxyCompactList}\item 
void \textbf{ Add\+Deal} (\textbf{ Mahjong} \&card)
\begin{DoxyCompactList}\small\item\em 把手牌加入开放牌堆 \end{DoxyCompactList}\item 
\textbf{ Mahjong} \textbf{ Out\+Card} ()
\begin{DoxyCompactList}\small\item\em 出牌 \end{DoxyCompactList}\item 
void \textbf{ Card\+Sort} ()
\begin{DoxyCompactList}\small\item\em 整理牌墙 \end{DoxyCompactList}\item 
void \textbf{ QSort} (int s, int t)
\begin{DoxyCompactList}\small\item\em 快速排序 \end{DoxyCompactList}\item 
bool \textbf{ Compare} (\textbf{ Mahjong} \&a, \textbf{ Mahjong} \&b)
\begin{DoxyCompactList}\small\item\em 比较两个麻将的花色，返回bool值 \end{DoxyCompactList}\item 
bool \textbf{ Can\+Hu} (\textbf{ Mahjong} \&a)
\begin{DoxyCompactList}\small\item\em 判断能不能胡 \end{DoxyCompactList}\item 
bool \textbf{ Can\+Chi} (std\+::vector$<$ \textbf{ Mahjong} $>$ \&Tmp, \textbf{ Mahjong} \&a)
\begin{DoxyCompactList}\small\item\em 判断能不能吃上家 \end{DoxyCompactList}\item 
bool \textbf{ Can\+Chi} (\textbf{ Mahjong} \&a)
\item 
bool \textbf{ Can\+Gang} (\textbf{ Mahjong} \&a)
\begin{DoxyCompactList}\small\item\em 判断能不能杠 \end{DoxyCompactList}\item 
bool \textbf{ Can\+Peng} (\textbf{ Mahjong} \&a)
\begin{DoxyCompactList}\small\item\em 判断能不能碰 \end{DoxyCompactList}\item 
int \textbf{ Should\+Act} (\textbf{ Mahjong} \&a)
\item 
void \textbf{ Act} (int type, \textbf{ Mahjong} \&a)
\item 
void \textbf{ Hu} (\textbf{ Mahjong} \&a)
\begin{DoxyCompactList}\small\item\em 进行胡牌之后的操作 \end{DoxyCompactList}\item 
void \textbf{ Chi} (\textbf{ Mahjong} \&a)
\begin{DoxyCompactList}\small\item\em 进行吃牌之后的操作 \end{DoxyCompactList}\item 
void \textbf{ Gang} (\textbf{ Mahjong} \&a)
\begin{DoxyCompactList}\small\item\em 进行杠牌之后的操作 \end{DoxyCompactList}\item 
void \textbf{ Peng} (\textbf{ Mahjong} \&a)
\begin{DoxyCompactList}\small\item\em 在手牌中加入麻将a，整理，把这三张牌加入明牌中，\+Ke\+Zi数加1 \end{DoxyCompactList}\item 
int \textbf{ Get\+Hu\+Probability} (\textbf{ Mahjong} \&a)
\item 
void \textbf{ Number\+Clear} ()
\begin{DoxyCompactList}\small\item\em 将牌堆中的刻子数，顺子数，对子数，杠子数置为0 \end{DoxyCompactList}\item 
void \textbf{ Print\+Infected\+Probability} ()
\begin{DoxyCompactList}\small\item\em 输出被感染的概率 \end{DoxyCompactList}\item 
void \textbf{ Print\+Hand\+Card} ()
\begin{DoxyCompactList}\small\item\em 打印手牌的情况 \end{DoxyCompactList}\item 
void \textbf{ Print\+My\+Message} ()
\end{DoxyCompactItemize}
\doxysubsection*{Public 属性}
\begin{DoxyCompactItemize}
\item 
std\+::vector$<$ \textbf{ Mahjong} $>$ \textbf{ Hand}
\begin{DoxyCompactList}\small\item\em 牌局进行需要的一些函数 \end{DoxyCompactList}\item 
std\+::vector$<$ \textbf{ Mahjong} $>$ \textbf{ Open\+Deal}
\begin{DoxyCompactList}\small\item\em 明牌 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Private 属性}
\begin{DoxyCompactItemize}
\item 
float \textbf{ Propagates} = 0
\begin{DoxyCompactList}\small\item\em 玩家的属性 \end{DoxyCompactList}\item 
float \textbf{ Infected\+Probability} = 0
\begin{DoxyCompactList}\small\item\em 被感染概率系数 \end{DoxyCompactList}\item 
int \textbf{ Touches\+Face\+Number} = 0
\item 
int \textbf{ Touches\+Contaminated\+Mahjong\+Number} = 0
\item 
bool \textbf{ Having\+Mask} = 0
\begin{DoxyCompactList}\small\item\em 是否戴面具 \end{DoxyCompactList}\item 
float \textbf{ Virus\+Load} = 0
\begin{DoxyCompactList}\small\item\em 病毒携带量 \end{DoxyCompactList}\item 
int \textbf{ Reaction\+Rate} = -\/1
\begin{DoxyCompactList}\small\item\em [0 1 2 3]反应速度 \end{DoxyCompactList}\item 
\textbf{ People} $\ast$ \textbf{ after} = nullptr
\begin{DoxyCompactList}\small\item\em 头指针 \end{DoxyCompactList}\item 
\textbf{ People} $\ast$ \textbf{ front} = nullptr
\begin{DoxyCompactList}\small\item\em 尾指针 \end{DoxyCompactList}\item 
int \textbf{ ID} = -\/1
\begin{DoxyCompactList}\small\item\em 玩家的唯一标识 \end{DoxyCompactList}\item 
int \textbf{ State} = 0
\begin{DoxyCompactList}\small\item\em 是否听牌 \end{DoxyCompactList}\item 
int \textbf{ Ke\+Zi} = 0
\begin{DoxyCompactList}\small\item\em 牌堆的属性 \end{DoxyCompactList}\item 
int \textbf{ Shun\+Zi} = 0
\begin{DoxyCompactList}\small\item\em 顺子数 \end{DoxyCompactList}\item 
int \textbf{ Dui\+Zi} = 0
\begin{DoxyCompactList}\small\item\em 对子数 \end{DoxyCompactList}\item 
int \textbf{ Gang\+Zi} = 0
\begin{DoxyCompactList}\small\item\em 杠子数 \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{构造及析构函数说明}
\mbox{\label{class_people_a13e1f16fe9c5a23820b919d132e8503e}} 
\index{People@{People}!People@{People}}
\index{People@{People}!People@{People}}
\doxysubsubsection{People()}
{\footnotesize\ttfamily People\+::\+People (\begin{DoxyParamCaption}\item[{float}]{i1,  }\item[{float}]{i2,  }\item[{bool}]{mask,  }\item[{int}]{reaction }\end{DoxyParamCaption})}



获取和改变玩家属性的一些函数 

构造函数 


\begin{DoxyParams}{参数}
{\em i1} & 病毒残留概率\\
\hline
{\em i2} & 被感染概率系数\\
\hline
{\em mask} & 是否戴面具\\
\hline
{\em reaction} & 病毒携带量\\
\hline
\end{DoxyParams}


\doxysubsection{成员函数说明}
\mbox{\label{class_people_a1e5b321de3334deb4fcb5bc7d5028ef6}} 
\index{People@{People}!Act@{Act}}
\index{Act@{Act}!People@{People}}
\doxysubsubsection{Act()}
{\footnotesize\ttfamily void People\+::\+Act (\begin{DoxyParamCaption}\item[{int}]{type,  }\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}

函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a1e5b321de3334deb4fcb5bc7d5028ef6_cgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a39d6f2018afa737f952e877cefecabbb}} 
\index{People@{People}!AddCard@{AddCard}}
\index{AddCard@{AddCard}!People@{People}}
\doxysubsubsection{AddCard()}
{\footnotesize\ttfamily void People\+::\+Add\+Card (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{card }\end{DoxyParamCaption})}



摸牌 

摸牌函数 


\begin{DoxyParams}{参数}
{\em card} & 摸进的牌\\
\hline
\end{DoxyParams}
函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a39d6f2018afa737f952e877cefecabbb_cgraph}
\end{center}
\end{figure}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a39d6f2018afa737f952e877cefecabbb_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a832a0271d7d8e98db6254c2308c46bee}} 
\index{People@{People}!AddDeal@{AddDeal}}
\index{AddDeal@{AddDeal}!People@{People}}
\doxysubsubsection{AddDeal()}
{\footnotesize\ttfamily void People\+::\+Add\+Deal (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{card }\end{DoxyParamCaption})}



把手牌加入开放牌堆 


\begin{DoxyParams}{参数}
{\em card} & card是从手牌中转移到开放牌堆中的麻将牌\\
\hline
\end{DoxyParams}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a832a0271d7d8e98db6254c2308c46bee_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_af3b546cb0846f22c61bdcd9cfb64fbec}} 
\index{People@{People}!After@{After}}
\index{After@{After}!People@{People}}
\doxysubsubsection{After()}
{\footnotesize\ttfamily \textbf{ People} $\ast$ People\+::\+After (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



获得尾指针 

\begin{DoxyReturn}{返回}
返回尾指针
\end{DoxyReturn}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=331pt]{class_people_af3b546cb0846f22c61bdcd9cfb64fbec_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a533f5900d96ffba0854b7db128089376}} 
\index{People@{People}!AirDissemination@{AirDissemination}}
\index{AirDissemination@{AirDissemination}!People@{People}}
\doxysubsubsection{AirDissemination()}
{\footnotesize\ttfamily void People\+::\+Air\+Dissemination (\begin{DoxyParamCaption}\item[{float}]{Air\+Virus\+Load }\end{DoxyParamCaption})}

这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a533f5900d96ffba0854b7db128089376_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a57d60b15a9865100797a9e4cf5232763}} 
\index{People@{People}!CanChi@{CanChi}}
\index{CanChi@{CanChi}!People@{People}}
\doxysubsubsection{CanChi()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool People\+::\+Can\+Chi (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}

\mbox{\label{class_people_a8eaaff80a02ac3fd51ac7fab624411d6}} 
\index{People@{People}!CanChi@{CanChi}}
\index{CanChi@{CanChi}!People@{People}}
\doxysubsubsection{CanChi()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily bool People\+::\+Can\+Chi (\begin{DoxyParamCaption}\item[{std\+::vector$<$ \textbf{ Mahjong} $>$ \&}]{Tmp,  }\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}



判断能不能吃上家 


\begin{DoxyParams}{参数}
{\em Tmp} & \\
\hline
{\em a} & 对加入麻将a之后的手牌判断能不能吃\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a8eaaff80a02ac3fd51ac7fab624411d6_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a56c49978cb59cdb13bad5af5c4a3e749}} 
\index{People@{People}!CanGang@{CanGang}}
\index{CanGang@{CanGang}!People@{People}}
\doxysubsubsection{CanGang()}
{\footnotesize\ttfamily bool People\+::\+Can\+Gang (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}



判断能不能杠 


\begin{DoxyParams}{参数}
{\em a} & 对加入麻将a之后的手牌判断能不能杠\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
能杠返回true
\end{DoxyReturn}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=307pt]{class_people_a56c49978cb59cdb13bad5af5c4a3e749_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a9132439737c7acd65dd1eb1687b05e55}} 
\index{People@{People}!CanHu@{CanHu}}
\index{CanHu@{CanHu}!People@{People}}
\doxysubsubsection{CanHu()}
{\footnotesize\ttfamily bool People\+::\+Can\+Hu (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}



判断能不能胡 


\begin{DoxyParams}{参数}
{\em a} & 对加入麻将a之后的手牌判断能不能胡\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
能胡则返回true，不能则返回false
\end{DoxyReturn}
函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=282pt]{class_people_a9132439737c7acd65dd1eb1687b05e55_cgraph}
\end{center}
\end{figure}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=296pt]{class_people_a9132439737c7acd65dd1eb1687b05e55_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_ab9f335985eeed5c66197738920989d7a}} 
\index{People@{People}!CanPeng@{CanPeng}}
\index{CanPeng@{CanPeng}!People@{People}}
\doxysubsubsection{CanPeng()}
{\footnotesize\ttfamily bool People\+::\+Can\+Peng (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}



判断能不能碰 


\begin{DoxyParams}{参数}
{\em a} & 对加入麻将a之后的手牌判断能不能碰\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
能碰返回true
\end{DoxyReturn}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=306pt]{class_people_ab9f335985eeed5c66197738920989d7a_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a2e396be75e76096c7fbe0fa102c3a8b4}} 
\index{People@{People}!CardSort@{CardSort}}
\index{CardSort@{CardSort}!People@{People}}
\doxysubsubsection{CardSort()}
{\footnotesize\ttfamily void People\+::\+Card\+Sort (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



整理牌墙 

函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a2e396be75e76096c7fbe0fa102c3a8b4_cgraph}
\end{center}
\end{figure}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a2e396be75e76096c7fbe0fa102c3a8b4_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_adb9242235a8ed742fbb2f08b2ec39128}} 
\index{People@{People}!Chi@{Chi}}
\index{Chi@{Chi}!People@{People}}
\doxysubsubsection{Chi()}
{\footnotesize\ttfamily void People\+::\+Chi (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}



进行吃牌之后的操作 


\begin{DoxyParams}{参数}
{\em a} & 对加入麻将a之后的手牌进行吃牌之后的操作\\
\hline
\end{DoxyParams}
函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_adb9242235a8ed742fbb2f08b2ec39128_cgraph}
\end{center}
\end{figure}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=325pt]{class_people_adb9242235a8ed742fbb2f08b2ec39128_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_ad6148cacf709fcca92a0002290f35641}} 
\index{People@{People}!Compare@{Compare}}
\index{Compare@{Compare}!People@{People}}
\doxysubsubsection{Compare()}
{\footnotesize\ttfamily bool People\+::\+Compare (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{a,  }\item[{\textbf{ Mahjong} \&}]{b }\end{DoxyParamCaption})}



比较两个麻将的花色，返回bool值 


\begin{DoxyParams}{参数}
{\em a} & \\
\hline
{\em b} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}

\end{DoxyReturn}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_ad6148cacf709fcca92a0002290f35641_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_ae8e19703c100df7dc42b4dc64275dd41}} 
\index{People@{People}!Front@{Front}}
\index{Front@{Front}!People@{People}}
\doxysubsubsection{Front()}
{\footnotesize\ttfamily \textbf{ People} $\ast$ People\+::\+Front (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



获得头指针 

\begin{DoxyReturn}{返回}
返回头指针
\end{DoxyReturn}
\mbox{\label{class_people_a61c926e7ba5d9f7de84b5385722414f5}} 
\index{People@{People}!Gang@{Gang}}
\index{Gang@{Gang}!People@{People}}
\doxysubsubsection{Gang()}
{\footnotesize\ttfamily void People\+::\+Gang (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}



进行杠牌之后的操作 


\begin{DoxyParams}{参数}
{\em a} & 对加入麻将a之后的手牌进行杠牌之后的操作\\
\hline
\end{DoxyParams}
函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a61c926e7ba5d9f7de84b5385722414f5_cgraph}
\end{center}
\end{figure}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=260pt]{class_people_a61c926e7ba5d9f7de84b5385722414f5_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a37ec2d7608b2b1a76879438302a88da3}} 
\index{People@{People}!getHavingMask@{getHavingMask}}
\index{getHavingMask@{getHavingMask}!People@{People}}
\doxysubsubsection{getHavingMask()}
{\footnotesize\ttfamily bool People\+::get\+Having\+Mask (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



获取是否戴口罩 

\begin{DoxyReturn}{返回}

\end{DoxyReturn}
\mbox{\label{class_people_abbfda62da0546c9e9cc4efa3a461ef75}} 
\index{People@{People}!GetHuProbability@{GetHuProbability}}
\index{GetHuProbability@{GetHuProbability}!People@{People}}
\doxysubsubsection{GetHuProbability()}
{\footnotesize\ttfamily int People\+::\+Get\+Hu\+Probability (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}

\mbox{\label{class_people_a81ae931f0d40e7527c6e2905f0d184e3}} 
\index{People@{People}!GetInfected@{GetInfected}}
\index{GetInfected@{GetInfected}!People@{People}}
\doxysubsubsection{GetInfected()}
{\footnotesize\ttfamily float People\+::\+Get\+Infected (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



获得被感染概率系数 

\begin{DoxyReturn}{返回}
返回被感染概率系数\+Infected\+Probability
\end{DoxyReturn}
\mbox{\label{class_people_aec22f48da910c1522cf7698591f48430}} 
\index{People@{People}!GetPropagates@{GetPropagates}}
\index{GetPropagates@{GetPropagates}!People@{People}}
\doxysubsubsection{GetPropagates()}
{\footnotesize\ttfamily float People\+::\+Get\+Propagates (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



获得病毒残留概率 

\begin{DoxyReturn}{返回}
返回病毒残留概率\+Propagates
\end{DoxyReturn}
\mbox{\label{class_people_ab538e51a9e84ab1253c782ec889d0347}} 
\index{People@{People}!GetVirus@{GetVirus}}
\index{GetVirus@{GetVirus}!People@{People}}
\doxysubsubsection{GetVirus()}
{\footnotesize\ttfamily float People\+::\+Get\+Virus (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



获得病毒携带量 

\begin{DoxyReturn}{返回}
返回病毒携带量\+Virus\+Load
\end{DoxyReturn}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_ab538e51a9e84ab1253c782ec889d0347_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_aabc856cda8c7d89c0f10c2d4b613f17e}} 
\index{People@{People}!Hu@{Hu}}
\index{Hu@{Hu}!People@{People}}
\doxysubsubsection{Hu()}
{\footnotesize\ttfamily void People\+::\+Hu (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}



进行胡牌之后的操作 


\begin{DoxyParams}{参数}
{\em a} & 胡了之后，对加入麻将a之后的手牌进行胡牌之后的操作\\
\hline
\end{DoxyParams}
函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_aabc856cda8c7d89c0f10c2d4b613f17e_cgraph}
\end{center}
\end{figure}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=249pt]{class_people_aabc856cda8c7d89c0f10c2d4b613f17e_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a3844b8877c74027e87e7f2f2f1610513}} 
\index{People@{People}!NumberClear@{NumberClear}}
\index{NumberClear@{NumberClear}!People@{People}}
\doxysubsubsection{NumberClear()}
{\footnotesize\ttfamily void People\+::\+Number\+Clear (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



将牌堆中的刻子数，顺子数，对子数，杠子数置为0 

\texorpdfstring{$<$}{<}刻子数

\texorpdfstring{$<$}{<}顺子数

\texorpdfstring{$<$}{<}对子数

\texorpdfstring{$<$}{<}杠子数\mbox{\label{class_people_a19926c8c705e6cd58715cd6a5f532847}} 
\index{People@{People}!OutCard@{OutCard}}
\index{OutCard@{OutCard}!People@{People}}
\doxysubsubsection{OutCard()}
{\footnotesize\ttfamily \textbf{ Mahjong} People\+::\+Out\+Card (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



出牌 

人的出牌行为 

\begin{DoxyReturn}{返回}
返回一张本人打出的牌
\end{DoxyReturn}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=347pt]{class_people_a19926c8c705e6cd58715cd6a5f532847_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a7999c06be7ae9a3405cfe6f40e5e416e}} 
\index{People@{People}!Peng@{Peng}}
\index{Peng@{Peng}!People@{People}}
\doxysubsubsection{Peng()}
{\footnotesize\ttfamily void People\+::\+Peng (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}



在手牌中加入麻将a，整理，把这三张牌加入明牌中，\+Ke\+Zi数加1 


\begin{DoxyParams}{参数}
{\em a} & 对加入麻将a之后的手牌进行杠牌之后的操作\\
\hline
\end{DoxyParams}
函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a7999c06be7ae9a3405cfe6f40e5e416e_cgraph}
\end{center}
\end{figure}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=259pt]{class_people_a7999c06be7ae9a3405cfe6f40e5e416e_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_abe6b5a7faad610ada58fc9168ef4e826}} 
\index{People@{People}!PrintHandCard@{PrintHandCard}}
\index{PrintHandCard@{PrintHandCard}!People@{People}}
\doxysubsubsection{PrintHandCard()}
{\footnotesize\ttfamily void People\+::\+Print\+Hand\+Card (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



打印手牌的情况 

这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_abe6b5a7faad610ada58fc9168ef4e826_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_ada9411b892578b39ca44e9f1d76feadf}} 
\index{People@{People}!PrintInfectedProbability@{PrintInfectedProbability}}
\index{PrintInfectedProbability@{PrintInfectedProbability}!People@{People}}
\doxysubsubsection{PrintInfectedProbability()}
{\footnotesize\ttfamily void People\+::\+Print\+Infected\+Probability (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



输出被感染的概率 

\mbox{\label{class_people_a3065b067ba91165ca626a15e8830595f}} 
\index{People@{People}!PrintMyMessage@{PrintMyMessage}}
\index{PrintMyMessage@{PrintMyMessage}!People@{People}}
\doxysubsubsection{PrintMyMessage()}
{\footnotesize\ttfamily void People\+::\+Print\+My\+Message (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

\mbox{\label{class_people_a27f74e354788fef1db670611461a5291}} 
\index{People@{People}!PrintTouchesContaminatedMahjongNumber@{PrintTouchesContaminatedMahjongNumber}}
\index{PrintTouchesContaminatedMahjongNumber@{PrintTouchesContaminatedMahjongNumber}!People@{People}}
\doxysubsubsection{PrintTouchesContaminatedMahjongNumber()}
{\footnotesize\ttfamily void People\+::\+Print\+Touches\+Contaminated\+Mahjong\+Number (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

\mbox{\label{class_people_a1729bf321e5a5eb2aa69692ebe9a14af}} 
\index{People@{People}!PrintTouchesFaceNumber@{PrintTouchesFaceNumber}}
\index{PrintTouchesFaceNumber@{PrintTouchesFaceNumber}!People@{People}}
\doxysubsubsection{PrintTouchesFaceNumber()}
{\footnotesize\ttfamily void People\+::\+Print\+Touches\+Face\+Number (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

\mbox{\label{class_people_a4dbffa6c1763150dae9f3b808ddbc12d}} 
\index{People@{People}!QSort@{QSort}}
\index{QSort@{QSort}!People@{People}}
\doxysubsubsection{QSort()}
{\footnotesize\ttfamily void People\+::\+QSort (\begin{DoxyParamCaption}\item[{int}]{s,  }\item[{int}]{t }\end{DoxyParamCaption})}



快速排序 


\begin{DoxyParams}{参数}
{\em s} & 数列第一个元素的索引\\
\hline
{\em t} & 数列最后一个元素的索引\\
\hline
\end{DoxyParams}
函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=286pt]{class_people_a4dbffa6c1763150dae9f3b808ddbc12d_cgraph}
\end{center}
\end{figure}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a4dbffa6c1763150dae9f3b808ddbc12d_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a7e39ef53fe714d4eddd3db41e1151ee8}} 
\index{People@{People}!setAfter@{setAfter}}
\index{setAfter@{setAfter}!People@{People}}
\doxysubsubsection{setAfter()}
{\footnotesize\ttfamily void People\+::set\+After (\begin{DoxyParamCaption}\item[{\textbf{ People} $\ast$const}]{x }\end{DoxyParamCaption})}



设置尾指针 


\begin{DoxyParams}{参数}
{\em x} & 将尾指针指向x\\
\hline
\end{DoxyParams}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a7e39ef53fe714d4eddd3db41e1151ee8_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a6fce21b829069d86b048a7fef5255e6e}} 
\index{People@{People}!setFront@{setFront}}
\index{setFront@{setFront}!People@{People}}
\doxysubsubsection{setFront()}
{\footnotesize\ttfamily void People\+::set\+Front (\begin{DoxyParamCaption}\item[{\textbf{ People} $\ast$const}]{x }\end{DoxyParamCaption})}



设置头指针 


\begin{DoxyParams}{参数}
{\em x} & 将头指针指向x\\
\hline
\end{DoxyParams}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a6fce21b829069d86b048a7fef5255e6e_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a0a724922abf433d0bf7e79974ed2aeaa}} 
\index{People@{People}!setID@{setID}}
\index{setID@{setID}!People@{People}}
\doxysubsubsection{setID()}
{\footnotesize\ttfamily void People\+::set\+ID (\begin{DoxyParamCaption}\item[{int}]{i }\end{DoxyParamCaption})}



设置本人\+ID 


\begin{DoxyParams}{参数}
{\em i} & ID是玩家区别于其他人的唯一标志\\
\hline
\end{DoxyParams}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a0a724922abf433d0bf7e79974ed2aeaa_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a2bd66d259b26c882a6eff7b0e17c58d8}} 
\index{People@{People}!SetVirus@{SetVirus}}
\index{SetVirus@{SetVirus}!People@{People}}
\doxysubsubsection{SetVirus()}
{\footnotesize\ttfamily void People\+::\+Set\+Virus (\begin{DoxyParamCaption}\item[{int}]{a }\end{DoxyParamCaption})}



设置携带病毒量 


\begin{DoxyParams}{参数}
{\em a} & 将\+Virus\+Load设置为a\\
\hline
\end{DoxyParams}
这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a2bd66d259b26c882a6eff7b0e17c58d8_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_acf1bea071a487352f97208860061947d}} 
\index{People@{People}!ShouldAct@{ShouldAct}}
\index{ShouldAct@{ShouldAct}!People@{People}}
\doxysubsubsection{ShouldAct()}
{\footnotesize\ttfamily int People\+::\+Should\+Act (\begin{DoxyParamCaption}\item[{\textbf{ Mahjong} \&}]{a }\end{DoxyParamCaption})}

函数调用图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_acf1bea071a487352f97208860061947d_cgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a2fb7fd72e7ebdf5f5c2db40da648f881}} 
\index{People@{People}!TouchesContaminatedMahjongNumberIncrease@{TouchesContaminatedMahjongNumberIncrease}}
\index{TouchesContaminatedMahjongNumberIncrease@{TouchesContaminatedMahjongNumberIncrease}!People@{People}}
\doxysubsubsection{TouchesContaminatedMahjongNumberIncrease()}
{\footnotesize\ttfamily void People\+::\+Touches\+Contaminated\+Mahjong\+Number\+Increase (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a2fb7fd72e7ebdf5f5c2db40da648f881_icgraph}
\end{center}
\end{figure}
\mbox{\label{class_people_a7ced3699a560d89804be7dc175576c84}} 
\index{People@{People}!TouchesFaceNumberIncrease@{TouchesFaceNumberIncrease}}
\index{TouchesFaceNumberIncrease@{TouchesFaceNumberIncrease}!People@{People}}
\doxysubsubsection{TouchesFaceNumberIncrease()}
{\footnotesize\ttfamily void People\+::\+Touches\+Face\+Number\+Increase (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

这是这个函数的调用关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{class_people_a7ced3699a560d89804be7dc175576c84_icgraph}
\end{center}
\end{figure}


\doxysubsection{类成员变量说明}
\mbox{\label{class_people_a451c65fc617f018acd1613655edb8a9e}} 
\index{People@{People}!after@{after}}
\index{after@{after}!People@{People}}
\doxysubsubsection{after}
{\footnotesize\ttfamily \textbf{ People}$\ast$ People\+::after = nullptr\hspace{0.3cm}{\ttfamily [private]}}



头指针 

\mbox{\label{class_people_aca425909715c4c6cc07d4b2314f3a111}} 
\index{People@{People}!DuiZi@{DuiZi}}
\index{DuiZi@{DuiZi}!People@{People}}
\doxysubsubsection{DuiZi}
{\footnotesize\ttfamily int People\+::\+Dui\+Zi = 0\hspace{0.3cm}{\ttfamily [private]}}



对子数 

\mbox{\label{class_people_a6cf4cf43e68c613d4b259a0858327c8e}} 
\index{People@{People}!front@{front}}
\index{front@{front}!People@{People}}
\doxysubsubsection{front}
{\footnotesize\ttfamily \textbf{ People}$\ast$ People\+::front = nullptr\hspace{0.3cm}{\ttfamily [private]}}



尾指针 

\mbox{\label{class_people_adb82ee18e4b790ec5d3c6c144f028ae4}} 
\index{People@{People}!GangZi@{GangZi}}
\index{GangZi@{GangZi}!People@{People}}
\doxysubsubsection{GangZi}
{\footnotesize\ttfamily int People\+::\+Gang\+Zi = 0\hspace{0.3cm}{\ttfamily [private]}}



杠子数 

\mbox{\label{class_people_aa188874525cda0665acb220deed07a40}} 
\index{People@{People}!Hand@{Hand}}
\index{Hand@{Hand}!People@{People}}
\doxysubsubsection{Hand}
{\footnotesize\ttfamily std\+::vector$<$\textbf{ Mahjong}$>$ People\+::\+Hand}



牌局进行需要的一些函数 

手牌 \mbox{\label{class_people_ad579ab57b947f2d2bb52ca800c1495d4}} 
\index{People@{People}!HavingMask@{HavingMask}}
\index{HavingMask@{HavingMask}!People@{People}}
\doxysubsubsection{HavingMask}
{\footnotesize\ttfamily bool People\+::\+Having\+Mask = 0\hspace{0.3cm}{\ttfamily [private]}}



是否戴面具 

\mbox{\label{class_people_ad7e523b0c789af49d321c90501c833cd}} 
\index{People@{People}!ID@{ID}}
\index{ID@{ID}!People@{People}}
\doxysubsubsection{ID}
{\footnotesize\ttfamily int People\+::\+ID = -\/1\hspace{0.3cm}{\ttfamily [private]}}



玩家的唯一标识 

\mbox{\label{class_people_ae72bbc574555bbf4ac434ebed0bb52b1}} 
\index{People@{People}!InfectedProbability@{InfectedProbability}}
\index{InfectedProbability@{InfectedProbability}!People@{People}}
\doxysubsubsection{InfectedProbability}
{\footnotesize\ttfamily float People\+::\+Infected\+Probability = 0\hspace{0.3cm}{\ttfamily [private]}}



被感染概率系数 

\mbox{\label{class_people_ac56a1ae64085ea7eb8d452a31e5fbff0}} 
\index{People@{People}!KeZi@{KeZi}}
\index{KeZi@{KeZi}!People@{People}}
\doxysubsubsection{KeZi}
{\footnotesize\ttfamily int People\+::\+Ke\+Zi = 0\hspace{0.3cm}{\ttfamily [private]}}



牌堆的属性 

刻子数 \mbox{\label{class_people_a5cdaa24ad042833234f5edca1184e82a}} 
\index{People@{People}!OpenDeal@{OpenDeal}}
\index{OpenDeal@{OpenDeal}!People@{People}}
\doxysubsubsection{OpenDeal}
{\footnotesize\ttfamily std\+::vector$<$\textbf{ Mahjong}$>$ People\+::\+Open\+Deal}



明牌 

\mbox{\label{class_people_aeb9860e40e7f2d9c157b1cad558d17dc}} 
\index{People@{People}!Propagates@{Propagates}}
\index{Propagates@{Propagates}!People@{People}}
\doxysubsubsection{Propagates}
{\footnotesize\ttfamily float People\+::\+Propagates = 0\hspace{0.3cm}{\ttfamily [private]}}



玩家的属性 

病毒残留概率 \mbox{\label{class_people_aa1ad277012e6a17b1b7e6ea549187be6}} 
\index{People@{People}!ReactionRate@{ReactionRate}}
\index{ReactionRate@{ReactionRate}!People@{People}}
\doxysubsubsection{ReactionRate}
{\footnotesize\ttfamily int People\+::\+Reaction\+Rate = -\/1\hspace{0.3cm}{\ttfamily [private]}}



[0 1 2 3]反应速度 

\mbox{\label{class_people_ab26ab2561daf812567d04d782d0ce110}} 
\index{People@{People}!ShunZi@{ShunZi}}
\index{ShunZi@{ShunZi}!People@{People}}
\doxysubsubsection{ShunZi}
{\footnotesize\ttfamily int People\+::\+Shun\+Zi = 0\hspace{0.3cm}{\ttfamily [private]}}



顺子数 

\mbox{\label{class_people_a4c7b3738504ec0b8ea51719355828f7b}} 
\index{People@{People}!State@{State}}
\index{State@{State}!People@{People}}
\doxysubsubsection{State}
{\footnotesize\ttfamily int People\+::\+State = 0\hspace{0.3cm}{\ttfamily [private]}}



是否听牌 

\mbox{\label{class_people_afeb00159d2d1f2212612c499aec96239}} 
\index{People@{People}!TouchesContaminatedMahjongNumber@{TouchesContaminatedMahjongNumber}}
\index{TouchesContaminatedMahjongNumber@{TouchesContaminatedMahjongNumber}!People@{People}}
\doxysubsubsection{TouchesContaminatedMahjongNumber}
{\footnotesize\ttfamily int People\+::\+Touches\+Contaminated\+Mahjong\+Number = 0\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\label{class_people_a82d0632344d82364590568dfea6169b2}} 
\index{People@{People}!TouchesFaceNumber@{TouchesFaceNumber}}
\index{TouchesFaceNumber@{TouchesFaceNumber}!People@{People}}
\doxysubsubsection{TouchesFaceNumber}
{\footnotesize\ttfamily int People\+::\+Touches\+Face\+Number = 0\hspace{0.3cm}{\ttfamily [private]}}

\mbox{\label{class_people_af152347cfabcf9b77572e0b7d6778859}} 
\index{People@{People}!VirusLoad@{VirusLoad}}
\index{VirusLoad@{VirusLoad}!People@{People}}
\doxysubsubsection{VirusLoad}
{\footnotesize\ttfamily float People\+::\+Virus\+Load = 0\hspace{0.3cm}{\ttfamily [private]}}



病毒携带量 



该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
D\+:/\+Data/gitee/\+Mahjong01/\textbf{ People.\+h}\item 
D\+:/\+Data/gitee/\+Mahjong01/\textbf{ People.\+cpp}\end{DoxyCompactItemize}
